A donation is recorded as a gift when it is accompanied by a full payment. A donation is recorded as a pledge if it is not accompanied by a full payment.
More:
Enter and edit gifts window - Overview tab